//
//  ShellSysMessageViewController.m
//  VVBTC
//
//  Created by lvzhao on 2019/7/11.
//  Copyright © 2019  吕VV. All rights reserved.
//

#import "ShellSysMessageViewController.h"
#import "ShellSysMessageView.h"
#import "ShellSysMessageViewModel.h"

@interface ShellSysMessageViewController ()

@property (nonatomic,strong) ShellSysMessageView *messageView;

@property (nonatomic,strong) ShellSysMessageViewModel *viewModel;

@end

@implementation ShellSysMessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = LZLocalizedString(@"站内信");
    [self setupUI];
}


#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.messageView];
    [self.messageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    showLoadingTitle(@"", nil);
    [self.viewModel getUserMessage:YES];
}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellSysMessageViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellSysMessageViewModel alloc] init];
    }
    return _viewModel;
}

- (ShellSysMessageView *)messageView{
    if(!_messageView){
        _messageView = [[ShellSysMessageView alloc] initViewModel:self.viewModel];
    }
    return _messageView;
}


@end
